home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
uucp
/
wcnews_1_0_30.lha
/
man
/
unsharmap.man
< prev
Wrap
Text File
|
1992-12-17
|
4KB
|
133 lines
UNSHARMAP(8) wCNews UNSHARMAP(8)
1mNAME22m
unsharmap - unshar a USENET comp.news.maps article
1mSYNOPSIS22m
1munsharmap22m [1m-d22m 1mdir22m] [1m-n22m 1mnewsgroups22m] [1m-p22m] <1mfile22m|1mlist22m >>1mlog22m
1mOPTIONS22m
1md22m dir cd to 'dir' before unsharing
1mn22m newsgroups colon separated list of allowed newsgroups
1mp22m use stdin (for piped input from 'sys')
where 1mfile22m|1mlist22m contains either a list of files that are
in the format below or, in conjuction with the 1mp22m flag, is
itself such a file.
1mDESCRIPTION22m
The USENET map project distributes files in the following
format:
The header, which starts at the first line and continues
up until there is a blank line as the follow lins it:
Newsgroups: comp.mail.maps
Subject: UUCP ...
MessageID: ...
Date: ...
Approved: ...
These lines are not the complete list, nor do they show up
in that order. After the header is a blank line. Next
comes the shar file preamble which consists of a bunch of
lines that begin with a :, followed by the 2 lines:
echo shar: extracting THEFILENAME
cat << 'SHAR_EOF' > THEFILENAME
what follows is the map data intended to override THE
FILENAME in the UNSHAR_MAP_DIR directory. The final 3
lines:
SHAR_EOF
: End of shell archive
exit 0
terminate the shar file, and are not considered a part of
the map data.
For each shar file processed, the following information is
written to stdout:
filename read
filename written
subject line
messageID
Villa Straylight 17 December 1992 1
UNSHARMAP(8) wCNews UNSHARMAP(8)
date
approved info
any error message
All error message lines begin with 'error:'.
exits by 0 if there was no errors, non0 otherwise.
For automatic extraction of new maps, I use an entry in
1muulib:news/sys22m similar to this one:
automapadm:nbg.config.maps,de.admin.submaps/all::uulib:news/bin/unsharmap <%s >>maps:logfile p n de.admin.submaps:nbg.config.maps d Maps:
1mSEE22m 1mALSO22m
relaynews(8), pathalias(8), USENET groups 4mcomp.mail.maps24m
and/or 4mde.admin.submaps24m.
1mHISTORY22m
/* @(#)unsharmap.c 1.6 2/5/89 14:14:01 */
Copyright (C) 1988 Ronald S. Karr and Landon Curt Noll
See the file COPYING, distributed with smail, for restric
tion and warranty information.
Adopted for 4mAmiga24m 4mUUCP24m 4mPlus24m by Ingo Feulner in 1990. Bug
fixed and included into 4mwCNews24m by Kai 'wusel' Siering in
1992.
1mBUGS22m
None known (yet =:>). Version (1.6.1) fixes one nasty bug
of the original version (distributed with Amiga UUCP
Plus): if you'd fed it a nonmap article (for example a
cancel message posted to de.admin.submaps), it looped for
ever (well, at least unless the device holding your log
file was full ...) =:<
Version 1.6.2 fixes a minor bug in the logging routines.
Please report bugs to <bugs@hactar.hanse.de>, preferably
using the 4mbugreport24m script that came with wCNews. Thank
you.
Villa Straylight 17 December 1992 2